package designpattern.composite;

/**
 * Created by asus on 2017/11/6.
 */
public class Chicken implements Animal {
    String name;

    public Chicken(String name) {
        this.name = name;
    }

    @Override
    public void eat() {
        System.out.println("鸡 :"+name+"吃东西");
    }

    @Override
    public void add(Animal animal) {

    }

}
